{include file="public/layout.htm" /}
<style>
    #typeid li {
        padding: 5px 10px;
        border-bottom: 1px solid #f8f8f8;
    }
</style>
<body class="back-c">
    <div class="ey-content">
        <div class="ey-header">
            <div class="ey-header-status">
                <div class="header-status-l"><a href="{:weapp_url('Mbackend/Archives/index_archives')}"><i class="iconfont icon-left"></i></a></div>
                <div class="header-status-m">发布文档 - 栏目选择</div>
                <div class="header-status-r"></div>
            </div>
            <div class="tab-block-lin-height"></div>
        </div>

        <div class="ey-header-lin-height-x"></div>
        <div class="order-list-wrap">
            <div class="mescroll-ey-warp list-wrap">
                <div class="mescroll-ey mescroll-ey-fixed list-release">
                    <div class="ey-scroll-view">
                        <div class="ey-scroll-view-content">
                            <div class="mescroll-ey-content">
                                <div class="release-box">
                                    <div class="release-con">
                                        <ul id="typeid" style="width: 100%;">
                                            {$select_html}
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script type="text/javascript">
        $(function () {
            $('#typeid').find('li').click(function() {
                checkSubmit($(this).val());
            });
        });

        // 判断输入框是否为空
        function checkSubmit(typeid) {
            // var typeid = $('#typeid').val();
            if (!typeid) {
                layerAlert('请选择栏目…！');
                return false;
            }
            var url = "{:weapp_url('Mbackend/Archives/add')}";
            url = url + '&typeid=' + typeid + '&virtual_id={$virtual_id}';
            window.location.href = url;
        }
    </script>
</body>
{include file="public/footer.htm" /}